#ifndef CHATRECORD_H
#define CHATRECORD_H

#include <QWidget>
#include <QVector>

namespace Ui {
class chatRecord;
}

class chatRecord : public QWidget
{
    Q_OBJECT

public:
    explicit chatRecord(QWidget *parent = nullptr);
    explicit chatRecord(const QString&selfname,const QString&friname,const QString&selfaccount,const QString&friaccount);
    ~chatRecord();

    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);

private slots:
    void on_toolButton_2_clicked();

    void on_toolButton_clicked();

private:
    Ui::chatRecord *ui;
    QVector<QString> sr;
    QPoint windowPos;
    QPoint mousePos;
    QPoint dPos;
};

#endif // CHATRECORD_H
